#include <stdio.h>
#include "proto.h"
int main(int argc, char **argv)
{
	int fd = socket (AF_INET, SOCK_DGRAM, 0 );
	struct msg_t buf;
	if (-1 == fd){
		perror ("socket");
		exit (1);
	}
	inet_aton (GROUP_IP, &imr._imr_multiaddr);
	inet_aton ("0.0.0.0", &imr.imr_address);
	imr.imr_ifindex = if_nametoindex ("ens33");
	if (-1 == setsockopt (fd, IPPROT_IP, IP_ADD_SOURCE_MEMBERSHIP, &imr, sizeof (imr) ))
	{
		perror ("setsockopt");
		return -1;
	}
	while (1){
		bzero (&buf, MAGSIZE);
		strncpy (buf.str, "hello", MAGSIZE);
		sendto ()
	}
}
